package com.songlanyun.common.supplychainapi.order.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 商品组
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Spu implements Serializable {

    /**
     * 商品唯一规格id（商品详情中option的id）
     */
    private Long sku;
    /**
     * 数量
     */
    private Integer number;
    /**
     * 协议价 单位分
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Double price;
}
